package com.cdfahe.common;

import java.util.HashMap;

public class Constants {
	/*药品生成html静态化页面*/
	public static final String DRUG_VM_DIR = "productview.vm";
	/*药品页面动态化的路径*/
	public static final String STATIC_DRUG_DIR = "/WEB-INF/dynamic/html/drug/";
	
	/*上传文件最大大小*/
	public static final int MAX_UPDATE_FILE = 1000000;
	/*上传文件保存目录*/
	public static final String UPDATE_FILE_DIR = "WEB-INF/dynamic/attached/";
	public static final String READ_FILE_DIR = "/dynamic/attached/";
	/*上传文件保存目录*/
	public static final String MANAGE_FILE_DIR = "/attached/";
	
	public static final String HANDLE_SUC = "操作成功！";
	/*药品默认图片*/
	public static final String DEFALT_DRUG_PIC = "img_fahe/imgnotfound.gif";
	/*动态改变的新闻*/
	public static final int NEWS_TYPE_STATIC = 1;
	
	public static final HashMap<String, String> NEWS_TYPE_MAP = new HashMap<String, String>();;
	static{
		NEWS_TYPE_MAP.put("1", "法和快讯");
		NEWS_TYPE_MAP.put("2", "行业新闻");
		NEWS_TYPE_MAP.put("3", "政策法规");
	}
	
	/*所有药品*/
	public static final int SELECT_ALL_DRUG = 0;
	
	// 定义允许上传的文件扩展名
	public static final HashMap<String, String> extMap = new HashMap<String, String>();
	static{
		extMap.put("image", "gif,jpg,jpeg,png,bmp");
		extMap.put("flash", "swf,flv");
		extMap.put("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb");
		extMap.put("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2,pdf");
	}
	
	
	
	public static final int BLO_DIPLOMA = 200;
	
    public static final int DEFAULT_PAGE_SIZE = 10;
    
    public static final String COMMAND = "command";
    
    //项目列表
    public static final String PROJECT_LIST = "projectlist";
    
    //新建项目
    public static final String ADD_PROJECT = "toaddproject";
    
    //项目参数设置
    public static final String PROJECT_PARAMETER_SETTINGS = "toprojectsettings";
    
    //语言列表
    public static final String LANGUAGE_LIST = "languagelist";
    
    //登录
    public static final String LOGIN = "index";
    public static final String MYPAGE = "mypage"; 
}
